package org.example.batch;

import com.intellij.openapi.project.Project;
import com.intellij.psi.SmartPointerManager;
import com.intellij.psi.SmartPsiElementPointer;
import com.intellij.psi.xml.XmlTag;
import org.example.demo.SqlExecutor;

public  class SqlCheckResult {
        final String type;
        final String sql;
        final SqlExecutor.Result result;
        final SmartPsiElementPointer<XmlTag> tagPointer;

        public SqlCheckResult(String type, String sql, SqlExecutor.Result result, XmlTag tag, Project project) {
            this.type = type;
            this.sql = sql;
            this.result = result;
            this.tagPointer = SmartPointerManager.getInstance(project).createSmartPsiElementPointer(tag);
        }
    }